package com.luzi.pro;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import static java.util.regex.Pattern.compile;

public class Main {
    public static void main(String[] args) {
        String content = "<>sjdfl</sdfds><dfsdf/>sdfjdlasf<ns1234:getBusinessActivity2List></soap:Body></soap:Eventlopper>&(^*(^*dlsfjls,239jdlkj;dsfds, PCY_TEST_";
        Pattern compile = compile("(<ns)[0-9]+(:)");
        Matcher m = compile.matcher(content);
        if (m.find( )) {
            String x = m.group();
            System.out.println(x);
        }
    }
}
